<%--
  Created by IntelliJ IDEA.
  User: User
  Date: 2024/5/14
  Time: 15:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
    <head>
        <title>用户登录</title>
    </head>
    <body>
        <h1>用户登录</h1>
        <form action="<%=request.getContextPath()%>/login" >
            用户名:
            <input type="text" name="username"><br>
            密码:
            <input type="password" name="password">
            <br>
            <input type="submit" value="登录">
            <span style="color:red;">
                <%
                    String msg= (String) request.getAttribute("msg");
                    if(msg!=null){
                        out.print(msg);
                    }

                %>
            </span>
         </form>
    </body>
</html>
